package com.googlecode.dbtesting.dto;

import org.hibernate.annotations.Index;

import javax.persistence.*;

/**
 * Provides the classes necessary to create ...
 * <p/>
 * <p/>
 * Author: Ruslan
 * Date: 22.02.2008
 * License: GPL v3
 */

@Entity
@Table(name = "a_telephone")
public class TelephoneDTO extends BasicDTO {

    @Index(name = "indexForTelephone", columnNames = {"number"})
    @Column(name = "number", length = 250)
    public String number;

    @ManyToOne
    public AddressDTO address;
}

